[quartz] GdkWindow, GdkNSView frame and cairo surface same size.
authorJohn Ralls <jralls@ceridwen.us>
Thu, 19 Jan 2023 18:37:55 +0000 (10:37 -0800)
committerJohn Ralls <jralls@ceridwen.us>
Thu, 19 Jan 2023 18:37:55 +0000 (10:37 -0800)
commitf60359c183cc24435521b3d3bbcfc4ebb2a79197
treefab6a418b2cff1783d0397d72c6f7df663e9c00f
parent6a2fb8444605ef2257b3e1a9abdc53d5033291c5
[quartz] GdkWindow, GdkNSView frame and cairo surface same size.

The cairo surface must be padded to 4 pixels in order to
transfer correctly to the GPU. The GdkWindow and GdkNSView's
content frame must be the same width, otherwise there's a mismatch
that causes either the GdkWindow to draw wider than the frame or the
frame to be clipped narrower than the title bar.

Fixes #5535.
gdk/quartz/GdkQuartzNSWindow.c
gdk/quartz/GdkQuartzView.c
gdk/quartz/gdkprivate-quartz.h
gdk/quartz/gdkwindow-quartz.c